<div id="storelist">
    <div class="nav">
        <a href="#agent/agentinfo">
            <div class="nav-li">市代信息</div>
        </a>
        <a href="#agent/storeregister">
            <div class="nav-li">门店登记</div>
        </a>
        <div class="nav-li focus">门店列表</div>
        <a href="#agent/finance">
            <div class="nav-li">账单详情</div>
        </a>
    </div>
    <hr />
    <div class="storelist">
        <table>
            <thead>
                <td>编号</td>
                <td>门店</td>
                <td>状态</td>
                <td>店长</td>
                <td>手机</td>
                <td>操作</td>
            </thead>
            {{#if $Cache.storelist.list.length}}
            {{#each $Cache.storelist.list}}
            <tr>
                <td>{{_id}}</td>
                <td>{{store_name}}</td>
                <td>
                    {{state==0&&"未审核"}}
                    {{state==1&&"审核中"||""}}
                    {{state==2&&"审核通过"||""}}
                    {{state==-1&&"冻结"||""}}
                </td>
                <td>{{contacts}}</td>
                <td>{{mobile_phone}}</td>
                <td>
                    <a href="#agent/storeregister?store_id={{_id}}" class="icon-eye" title="查看"></a>
                    <!--<a class="icon-remove2" title="删除"></a>-->
                </td>
            </tr>
            {{/each}}
            {{/if}}
        </table>
    </div>
</div>
